@extends('layouts.admin_panel')
@section('style')
    <link rel="stylesheet" type="text/css" href="/assets_admin_panel/global/plugins/select2/select2.css"/>
    <link rel="stylesheet" type="text/css" href="/assets_admin_panel/global/plugins/icheck/skins/all.css" />
    <link rel="stylesheet" type="text/css" href="/assets_admin_panel/global/plugins/bootstrap-datepicker/css/datepicker3.css"/>
@stop

@section('content')
    <!-- BEGIN PAGE HEADER-->
    <h3 class="page-title"> Thêm sản phẩm</h3>
    <div class="page-bar">
        <ul class="page-breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="index.html">Home</a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">Sản phẩm</a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">Thêm sản phẩm</a>
            </li>
        </ul>
    </div>
    <!-- END PAGE HEADER-->
    
    <div class="row">
        <div class="col-md-12">
            <div class="portlet box red-sunglo">
                <div class="portlet-title">
                    <div class="caption">
                        Thêm sản phẩm
                    </div>
                    <div class="tools">
                        <a class="collapse" href="javascript:;" data-original-title="" title=""> </a>
                        <a class="config" data-toggle="modal" href="#portlet-config" data-original-title="" title=""> </a>
                        <a href="javascript:;" class="reload"></a>
                        <a href="javascript:;" class="remove"></a>
                    </div>
                </div>
                <div class="portlet-body">
                    {{ Form::open(array(
                        'action' => 'ProductController@store',
                        'id' => 'form-product-create',
                        'class' => 'form-horizontal',
                        'method' => 'post',
                        'data-remote' => 'true',
                        'data-type' => 'json',
                        'novalidate'
                    )) }}
                    
                    	@include('product.form', array('type' => 0))
                    	<div class="clear"></div>
                    {{ Form::close() }}  
                    @include('elements/uploader')
                </div>
            </div>
        </div>
    </div>
@stop

@section('scripts')
    <script type="text/javascript" src="/assets_admin_panel/global/plugins/select2/select2.min.js"></script>
    <script type="text/javascript" src="/assets_admin_panel/global/plugins/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="/assets_admin_panel/admin/layout/scripts/core.js"></script>
    <script type="text/javascript" src="/assets_admin_panel/admin/layout/scripts/common.js"></script>
    <script type="text/javascript" src="/assets_admin_panel/admin/layout/scripts/elements/product.js"></script>
@stop